package com.daocao.hua.util;

import android.util.Log;

import com.daocao.hua.constant.Const;


/**
 * 自定义Log
 * Created by Master.Dong on 2016/4/5 0005.
 */
public class RBLog {
    public static void d(String tag, String msg) {
        if (!Const.RELEASE) Log.d(tag, msg);
    }

    public static void e(String tag, String msg) {
        if (!Const.RELEASE) Log.e(tag, msg);
    }

    public static void i(String tag, String msg) {
        if (!Const.RELEASE) Log.i(tag, msg);
    }

    public static void i(String tag, Object object) {
        if (!Const.RELEASE) Log.i(tag, (object == null ? "null" : object) + "");
    }

    public static void v(String tag, String msg) {
        if (!Const.RELEASE) Log.v(tag, msg);
    }

    public static void w(String tag, String msg) {
        if (!Const.RELEASE) Log.w(tag, msg);
    }

    public static void LogInit(Object obj) {
        if (!Const.RELEASE) if (obj != null) Log.d("init:", "" + obj.getClass().getName());
    }

    public static void LogDestroy(Object obj) {
        if (!Const.RELEASE) if (obj != null) Log.d("destroy:", "" + obj.getClass().getName());
    }

    public static void println(Object obj) {
        if (!Const.RELEASE) if (obj != null) System.out.println(obj);
    }

}
